package org.lzy.shop.viewmodel.repository

import org.lzy.shop.datas.AddAddressRequest
import org.lzy.shop.datas.DelAddress
import org.lzy.shop.datas.EditAddressRequest
import org.lzy.shop.response.AddressResponse

interface AddressRepository {
    /**
    * 获取地址列表
    */
    suspend fun getAddressList(): MutableList<AddressResponse>?

    /**
     * 添加地址
     */
    suspend fun addAddress(request: AddAddressRequest): String?

    /**
     * 更新地址
     */
    suspend fun updateAddress(request: EditAddressRequest):String?

    /**
     * 删除地址
     */
    suspend fun delAddress(request: DelAddress): String?
}

